<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@page isELIgnored="false" %>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Activities</title>
</head>

<body>

	<h1>Hello, ${nickname}!</h1>

	<a href="/controllers/activities/editActivity">Create new activity</a>

	<ul>
		<c:forEach var="activity" items="${activities}">
			<li><a href="/controllers/activities/editActivity?id=${activity.id}">${activity.name}</a> &nbsp; <a href="/controllers/activities/deleteActivity?id=${activity.id}">delete</a></li>
		</c:forEach>
	</ul>

</body>

</html>